package com.tangx.wemedia.config;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author ：sean
 * @date ：Created in 2022/1/3
 * @description ：
 * @version: 1.0
 */
@Slf4j
@javax.servlet.annotation.WebFilter(urlPatterns = "/*", filterName = "webFilter")
public class WebFilter implements Filter {
	@Override
	public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
		log.info("[WebFilter]");
		filterChain.doFilter(servletRequest, servletResponse);
	}

	@Override
	public void init(FilterConfig filterConfig) throws ServletException {

	}

	@Override
	public void destroy() {

	}
}
